package structure.pattern.decorator;

import structure.pattern.decorator.door.WoodDoorDecorator;
import structure.pattern.decorator.table.SquareTableDecorator;
import structure.pattern.decorator.table.TableFactory;

/**
 * @Autor: yuanyongan
 * @Description:
 * @Date 2023/1/9 14:59
 */
public class Test {
    public static void main(String[] args) {
        TableFactory tableFactory = new TableFactory();
        SquareTableDecorator squareTableDecorator = new SquareTableDecorator(tableFactory);
        WoodDoorDecorator woodDoorDecorator = new WoodDoorDecorator(squareTableDecorator);
        woodDoorDecorator.operate();
    }
}
